Skip to content

Conversation

@RalfJung
Copy link
Member

@RalfJung RalfJung commented Nov 14, 2025

This repeats the experiment from #122819. Back then, not even cargo built; since then, time-rs/time#704 has landed so maybe we get a bit further this time.

See #124328 for context.

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 14, 2025
@RalfJung
Copy link
Member Author

@bors try

rust-bors bot added a commit that referenced this pull request Nov 14, 2025
crater experiment: do not promote function calls in const/static items
@rust-bors

This comment has been minimized.

@rust-log-analyzer
Copy link
Collaborator

The job pr-check-1 failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
    Checking indicatif v0.17.11
error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a1794<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

note: erroneous constant encountered
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/css.rs:47:45
    |
  1 | / macro_rules! css_color_types {
  2 | |     ($(
  3 | |         $name:ident ($r:literal, $g:literal, $b:literal)
  4 | |     )*) => {
...   |
 47 | |                         CssColors::$name => CustomColor::<$r, $g, $b>::RAW_ANSI_FG,
    | |                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...   |
 79 | |     };
 80 | | }
    | |_- in this expansion of `css_color_types!`
 81 |
 82 | / css_color_types! {
 83 | |     AliceBlue (240, 248, 255)
 84 | |     AntiqueWhite (250, 235, 215)
 85 | |     Aqua (0, 255, 255)
...   |
229 | |     YellowGreen (154, 205, 50)
230 | | }
    | |_- in this macro invocation

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a1805<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a1816<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a1827<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a1838<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a1849<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a1860<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a1871<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a1882<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a1893<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a1904<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a1915<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a1926<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a1937<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a1948<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a1959<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a1970<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a1981<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a1992<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a2003<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a2014<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a2025<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a2036<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a2047<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a2058<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a2069<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a2080<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a2091<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a2102<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a2113<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a2124<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a2135<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a2146<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a2157<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a2168<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a2179<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a2190<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a2201<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a2212<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a2223<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a2234<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a2245<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5
    |
330 |     const RAW_ANSI_FG: &'static str =
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
    |
    = note: the rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
    = note: the raw bytes of the constant (size: 8, align: 4) {
                ╾a2256<imm> (4 ptr bytes)╼ 10 00 00 00                         │ ╾──╼....
            }

error[E0080]: constructing invalid value: encountered a dangling reference (use-after-free)
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/owo-colors-3.5.0/src/colors/custom.rs:330:5

@RalfJung
Copy link
Member Author

RalfJung commented Nov 14, 2025

Lol, this time we can't build clippy.^^ owo-colors fails.

This seems to have been fixed a year ago (owo-colors/owo-colors#131), but we depend on an ancient version of owo-colors via prettydiff. A newer prettydiff is available that would fix that, but the latest ui_test depends on an old prettydiff.

@rust-bors
Copy link

rust-bors bot commented Nov 14, 2025

☀️ Try build successful (CI)
Build commit: 943e220 (943e2200e35c3825486c4671b6cab0107a07f8c1, parent: 42f4793e5a514858221b07ac379029d90353913e)

@RalfJung
Copy link
Member Author

@craterbot check

@craterbot
Copy link
Collaborator

👌 Experiment pr-148952 created and queued.
🤖 Automatically detected try build 943e220
🔍 You can check out the queue and this experiment's details.

ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

@craterbot craterbot added S-waiting-on-crater Status: Waiting on a crater run to be completed. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-crater Status: Waiting on a crater run to be completed. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants